package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.SensorRtAlarmBean;
import com.shine.minepressure.bean.StationMessageBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class RealTimeFragment4Adapter extends BGARecyclerViewAdapter<StationMessageBean.RowsDTO> {

    public RealTimeFragment4Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_real_time_child4_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, StationMessageBean.RowsDTO model) {
        helper.setText(R.id.StationID, model.getStationID())
                .setText(R.id.StationName, model.getStationName())
                .setText(R.id.StationType, model.getStationType())
                .setText(R.id.IportNum, model.getIportNum())
                .setText(R.id.InstallPosition, model.getInstallPosition())
        ;
    }
}
